<html>
<head>
<title>Upload Form</title>
</head>
<body>

<h3>Your file was successfully uploaded!</h3>

<ul>
<?php foreach($upload_data as $item => $value):?>
<li><?php echo $item;?>: <?php echo $value;?></li>
<?php endforeach; ?>
</ul>
<script type="text/javascript">
	//modifie la source de l'image dans la fenetre appelante
	window.opener.document.photo.src="/uploads/<?php echo $upload_data['file_name']?>";
	//modifie la valeur de l'input 'upload' de la fenetre appelante
	window.opener.document.getElementById('upload').value = "<?php echo $upload_data['file_name']?>";
</script>
<p><?php echo anchor('upload', 'Upload Another File!'); ?></p>

</body>
</html>